<template>
<!--<h1>{{PaymentStatus}}</h1>-->

  <div id="Payment3">
    <span style="text-align:center;font-size:200px;color: #409EFF">{{PaymentStatus1}}</span>
    <div>
      <el-button @click="$router.push('/Home')">回到首页</el-button>
      <el-button type="primary" @click="$router.push('/People')">前往个人中心</el-button>
    </div>

  </div>
</template>
<script>
export default {
  name:"Payment3",
  data() {
    return {
      //支付状态
      PaymentStatus:"",
      //支付结果
      PaymentStatus1:""
    }
  },
  methods:{
    Payment(){
      if(this.PaymentStatus==="ok"){
        this.PaymentStatus1="支付完成"
      }else {
        this.PaymentStatus1="支付失败"
      }
    }
  },
  created() {
    this.PaymentStatus=this.$route.params.PaymentStatus
    this.Payment()
  }

}
</script>
<style scoped>
#div1{
border: black 2px solid;
}
</style>